<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<WebMVC.Models.ColorItemViewModel>>" %>
    <% foreach (var item in Model) { %>
        <%= Html.ActionLink(item.Name, "List", "Product", 
                            new { col = item.Id, page = Request.Params["page"] },
                            new { @class = "color-item" + (Convert.ToInt32(Request.Params["col"]) == item.Id ?
                                " selected-col-filter" : ""), style = "background-color:#" + item.RGBCode })%>
    <% } %>